package threadTestDemo;

public class MyThread extends Thread {

    int i;
    public MyThread(int i){
        this.i=i;
    }

    @Override
    public void run() {
        super.run();
        System.out.println("继承thread执行了,i="+i);
    }

    public static void main(String[] args) {
        MyThread myThread=new MyThread(10);
        myThread.start();
    }
}
